package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_category")
public class CategoryBean {
    @TableId(value = "pk_categoryId",type = IdType.AUTO)
    private Integer id;

    @TableField("c_name")
    private String name;

    public CategoryBean() {
    }

    public CategoryBean(String name) {
        this.name = name;
    }
}
